/*
 * @Author: your name
 * @Date: 2021-04-21 15:30:51
 * @LastEditTime: 2021-04-21 15:31:51
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \provider_demo\lib\counter2_model.dart
 */

import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

class CounterModel2 with ChangeNotifier, DiagnosticableTreeMixin {
  int _count = 0;

  int get count => _count;

  void increment() {
    _count++;
    notifyListeners();
  }

  @override
  void debugFillProperties(DiagnosticPropertiesBuilder properties) {
    super.debugFillProperties(properties);
    properties.add(IntProperty('count', count));
  }
}
